package utils;

import org.neo4j.driver.v1.AuthTokens;
import org.neo4j.driver.v1.Driver;
import org.neo4j.driver.v1.GraphDatabase;
import org.neo4j.driver.v1.Session;

public class Neo4jConnectionUtils {

    // url db3
     private static String conn_url = "bolt://172.16.119.32:7687";
    // url db2
    // private static String conn_url = "bolt://172.16.119.31:7687";
    private static String user = "neo4j";
    private static String passwd = "hyzs";

    private static Driver driver = GraphDatabase.driver(conn_url, AuthTokens.basic(user, passwd));

    public static Session getSession() {
        return driver.session();
    }






}
